package com.ypbase.cloud.tags.common.util;
import java.util.Date;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class Log {
	
	 private static final Logger logger = LoggerFactory.getLogger(Log.class);
	private Log() {
	}
	private static final String logPrefix(Class<?> clazz) {
		return "LOG ~~~ " + SDFs.getNew().SDF_LOG.format(new Date()) + " " + clazz.getName() + " - ";
	}
	public static void log(Class<?> clazz, String format, Object...args) {
		logger.info(logPrefix(clazz) + String.format(format, args));
	}
}
